<?php
namespace app\common\middleware;

use \app\common\controller\Base;
use think\facade\Log;

/**
 * 日志中间件
 * Class Validate
 * @package app\store\middleware
 */
class WriteLog extends Base
{
    /**
     * 验证
     * @param $request
     * @param \Closure $next
     * @return mixed|void
     */
    public function handle($request, \Closure $next)
    {
        if ($request->isPost()) {
            // 获取当前参数
            $params = $request->param();
        }
        return $next($request);
    }
}
